package com.qqtech.qquan.draw.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class DrawItemVo extends DrawItem {
	private String couponName;
	/**
	 * 对应代金券所适用的社区
	 */
	private java.lang.String communityName;
	
	
	public String getCouponName() {
		return couponName;
	}

	public void setCouponName(String couponName) {
		this.couponName = couponName;
	}

	private Integer quantity;

	public String getBigPathImgs() {
		if (StringUtil.isBlank(this.getImg())) {
			return "";
		}
		return this.getImgHandleDomain() + this.getImg();
	}

	public String getPathImgs() {
		if (StringUtil.isBlank(this.getImg())) {
			return "";
		}
		return this.getImgHandleDomain() + this.getImg();
	}

	public Integer getQuantity() {
		return quantity;
	}

	public String getStrNewAt() {
		return TimeUtil.getStringTimeByFormat(getNewAt(), "yyyy-MM-dd HH:mm");
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public java.lang.String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(java.lang.String communityName) {
		this.communityName = communityName;
	}

}